package com.itheima.Jiuye04;

public class StringHandr {
    public static void main(String[] args) {
        Prit(new StringHander() {
            @Override
            public void getbot(String stringHander) {
                System.out.println("我是匿名内部类"+stringHander);
            }
        });
        Prit((String a)->{
            System.out.println("我是lambda"+a);
        });
    }
    public static void Prit(StringHander a){
        a.getbot("花");
    }
}
interface StringHander{
    void getbot(String stringHander);
}